﻿using HTPI.MemberPoint.Entity.POCOModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace HTPI.MemberPoint.Busienss
{
    public class UserServer:BaseServer<Student>
    {
        //public bool Add(Student model)
        //{
        //    using (var db = new MemberPointEntity())
        //    {
        //        db.Student.Add(model);
        //       return db.SaveChanges() > 0;
        //    }
        //}
        //public bool Delete(Student model)
        //{
        //    using (var db = new MemberPointEntity())
        //    {
        //        db.Student.Remove(model);
        //        return db.SaveChanges() > 0;
        //    }
        //}
        //public IQueryable<Student>GetList(Expression<Func<Student, bool>> whereLambda)
        //{
        //    using (var db = new MemberPointEntity())
        //    {
        //        return db.Student.Where(whereLambda);
        //    }
        //}
    }
}
